home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / CIncludes / StdDef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  351 b   |  23 lines  |  [TEXT/MPS ]

  1. /*
  2.     StdDef.h -- Common definitions
  3.     
  4.     Copyright Apple Computer,Inc.    1987, 1988
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __STDDEF__
  10. #define __STDDEF__
  11.  
  12. typedef int ptrdiff_t;
  13. typedef unsigned int size_t;
  14. typedef short wchar_t;
  15.  
  16. #ifndef NULL
  17. #define NULL 0
  18. #endif NULL
  19.  
  20. #define offsetof(structure,field) ((size_t)&((structure *) 0)->field)
  21.  
  22. #endif __STDDEF__
  23.